package com.lirh.mywebsocket.stompController;

import com.lirh.mywebsocket.mqservice.Sender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SenderController {
    @Autowired
    private Sender sender;
    @GetMapping("/sender")
    public String sender(){
        sender.send("hello rabbit!");
        return "sender ok!";
    }
}
